package com.qut.atcoder.pojo;

import java.util.Date;

public class User {
    //用户主键，唯一标识符
    private int id;
    //用户昵称，可以修改，和QQ昵称一个效果
    private String user_name;
    //密码，需要加密
    private String user_password;
    //是否为男性：1是，0否，其它再说
    private int is_male;
    //生日，暂时用字符串吧
    private Date birthday;
    //用户头像地址
    private String head;
    /* 用户权限
     * 使用二进制位表示，0代表有该权限，1代表无该权限
     * 全0表示游客，没有任何权限
     * 权限还在构思中...
     */
    private int permission;
    //注销的用户不能直接删除，而是修改脏标志位
    private int is_exist;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public int getIs_male() {
        return is_male;
    }

    public void setIs_male(int is_male) {
        this.is_male = is_male;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public int getPermission() {
        return permission;
    }

    public void setPermission(int permission) {
        this.permission = permission;
    }

    public int getIs_exist() {
        return is_exist;
    }

    public void setIs_exist(int is_exist) {
        this.is_exist = is_exist;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", user_name='" + user_name + '\'' +
                ", user_password='" + user_password + '\'' +
                ", is_male=" + is_male +
                ", birthday=" + birthday +
                ", head='" + head + '\'' +
                ", permission=" + permission +
                ", is_exist=" + is_exist +
                '}';
    }
}
